import example from './index.vue'
import standardForm from './standardForm.vue'
import standardBpmn from './bpmn.vue'
import standardList from './standardList.vue'
import standardModal from './standardModal/modal.vue'
import standardRangeTime from './standardRangeTime.vue'
import standardBaiduMap from './baiduMap/index.vue'

const routes = [
  {
    path: 'example',
    redirect: 'example/standardForm',
    name: 'example',
    component: example,
    children: [
      {
        path: 'standardForm',
        name: 'standardForm',
        component: standardForm,
      },
      {
        path: 'standardBpmn',
        name: 'standardBpmn',
        component: standardBpmn,
      },
      {
        path: 'standardList',
        name: 'standardList',
        component: standardList,
      },
      {
        path: 'standardModal',
        name: 'standardModal',
        component: standardModal,
      },
      {
        path: 'standardRangeTime',
        name: 'standardRangeTime',
        component: standardRangeTime,
      },
      {
        path: 'standardBaiduMap',
        name: 'standardBaiduMap',
        component: standardBaiduMap,
      },
    ],
  },
]

const exampleMenu = {
  key: '88',
  label: 'example',
  children: [
    {
      key: '/layout/example/standardForm',
      label: 'form表单',
    },
    {
      key: '/layout/example/standardBpmn',
      label: 'bpmn',
    },
    {
      key: '/layout/example/standardList',
      label: '列表-详情-list',
    },
    {
      key: '/layout/example/standardModal',
      label: 'modal弹窗',
    },
    {
      key: '/layout/example/standardRangeTime',
      label: '时间范围选择器',
    },
    {
      key: '/layout/example/standardBaiduMap',
      label: '百度地图',
    },
  ],
}

export default routes
export { exampleMenu }
